import request from './request'

const ADD_USER = '/users'


//添加用户
function addUser(obj){
    return request({
        method:'post',
        url:'/users',
        data:obj
    });
}

//编辑用户
function editUser(id,obj) {
    return request({
        method:'put',
        url:'users/'+ id,
        data:obj
    });
}

export {addUser,editUser}